home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / SRCHPATH.HDR < prev    next >
Text File  |  1994-04-25  |  944b  |  43 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _Search_Path( cFileName ) --> cPathString
  8.  
  9. PARAMETERS:
  10.  
  11. cFileName : File name to search PATH for
  12.  
  13. SHORT:
  14.  
  15. Determine where in the OS PATH a specified file exists.
  16.  
  17. DESCRIPTION:
  18.  
  19. _Search_Path extracts and returns from the OS PATH the path that contains
  20. the file 'cFileName'.  If the file is not found, it returns "".
  21.  
  22. NOTE:
  23.  
  24.  
  25.  
  26. EXAMPLE:
  27.  
  28. Aassuming PATH = 'C:\APPS;C:\DOS;C:\UTILITY;C:\PROGRAMS' and that COMMAND.COM
  29. is in the DOS directory:
  30.  
  31. t = _Search_Path('COMMAND.COM')
  32.  
  33. Result: t = 'C:\DOS'
  34.  
  35.  
  36. Assume that QEDIT.EXE is in the UTILITY directory:
  37.  
  38. t = _Search_Path('QEDIT.EXE')
  39.  
  40. Result: t = 'C:\UTILITY'
  41.  
  42. ******************************************************************************/
  43.